package com.example.myaccount.bean;

public class Flow {
    private int id;
    private String type;
    private String date;
    private String annotation;
    private double amount;

    public Flow(int id,String type, String date, String annotation, double amount) {
        this.id = id;
        this.type = type;
        this.date = date;
        this.annotation = annotation;
        this.amount = amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAnnotation() {
        return annotation;
    }

    public void setAnnotation(String annotation) {
        this.annotation = annotation;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "Flow{" +
                "type='" + type + '\'' +
                ", date='" + date + '\'' +
                ", annotation='" + annotation + '\'' +
                ", amount=" + amount +
                '}';
    }
}
